package com.cbgolf.oa.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author lq
 * @date 2018/5/7
 */

public class ListBean implements Serializable {


  public String amount;
  public String consumerCard;
  public String customerId;
  public String identifyName;
  public String name;
  public String operator;
  public String play;
  public String recordDateTime;
  //------------------------------
  public String person;
  public String recordName;
  public String payable;
  public String identify;
  public String come;
  public String recordTime;
  public String cashStatus;
  public String reserveTime;
  public String id;
  public String playTime;
  //-------------------------------------
  public String orderClassification;
  public String customerName;
  public String creatorName;
  public String status;
  public String signingName;
  public String signed;
  public String recordDate;
  public String identityName;
  public String consumerCar;
  //--------------------------------
  public String caddie;
  public String courseCarType;
  public String coursecarnumber;

  public List<CustomerItemInfo> customerItemInfoDtoList;

  public class CustomerItemInfo implements Serializable {

    public String cashTime;
    public String count;
    public String goodName;
    public String orderPlace;
    public String payable;
  }

  public CustomerItemInfo getCustomerItemInfo() {
    return new CustomerItemInfo();
  }

  public List<PayInfo> payInfoDtoList;

  public class PayInfo implements Serializable {

    public String amount;
    public String cardNo;
    public String cashPerson;
    public String cashTime;
    public String payType;
    public String payTypeCode;

  }

  public PayInfo getPayInfo() {
    return new PayInfo();
  }

  public String teeTimeA;
  public String teeTimeB;

  public CustomerInfoDto customerInfoDto;

  public class CustomerInfoDto implements Serializable {

    public String consumerCard;
    public String customerId;
    public String identifyName;
    public String name;
    public String play;
    public String recordDateTime;
    public String bagnumber;
    public String lockerno;
    public String openBallCave;
    public String remark;
    public String cashStatus;

  }

  public CustomerInfoDto getCustomerInfoDto() {
    return new CustomerInfoDto();
  }

  public List<Teetime> teeTimeDtoList;

  public class Teetime implements Serializable {

    public String caddie;
    public String courseCarType;
    public String coursecarnumber;
    public String openBallCave;
    public String teeTime;
  }

  public Teetime getTeetime() {
    return new Teetime();
  }

  public String remark;

  public String nameForShow;
  public String idForName;


  public boolean isNoData;
  public String noDataText;
  public int errorCode;

  public static class Builder implements Serializable {

    ListBean bean;

    public Builder() {
      bean = new ListBean();
    }

    public Builder setId(String id) {
      bean.id = id;
      return this;
    }

    public Builder setCaddieId(String id) {
      bean.caddieId = id;
      return this;
    }

    public Builder setCaddieName(String id) {
      bean.caddieName = id;
      return this;
    }

    public Builder setCaddieNo(String id) {
      bean.caddieNo = id;
      return this;
    }

    public Builder setPlayTimes(String id) {
      bean.playTimes = id;
      return this;
    }

    public Builder setPhone(String id) {
      bean.phone = id;
      return this;
    }

    public Builder setLevelName(String id) {
      bean.levelName = id;
      return this;
    }

    public Builder setPlayTime(String playTime) {
      bean.playTime = playTime;
      return this;
    }

    public Builder setPostfix(String postfix) {
      bean.postfix = postfix;
      return this;
    }

    public Builder setDay(String day) {
      bean.day = day;
      return this;
    }

    public Builder setOrderType(String orderType) {
      bean.orderClassification = orderType;
      return this;
    }

    public Builder setIsNoData(boolean isNoData) {
      bean.isNoData = isNoData;
      return this;
    }

    public Builder setError(String error, int errorCode) {
      bean.errorCode = errorCode;
      bean.noDataText = error;
      return this;
    }

    public ListBean build() {
      return bean;
    }
  }

  public List<ReserveInfo> reserveInfoDtoList;

  public class ReserveInfo implements Serializable {

    public String come;
    public String groupName;
    public String identify;
    public String name;
    public String operator;
    public String person;
    public String phone;
    public String playTime;
    public String reserveTime;
    public String openBallCave;
  }

  public ReserveInfo getReserveInfo() {
    return new ReserveInfo();
  }

  //caddie
  public String caddieId;
  public String caddieNo;
  public String caddieName;
  public String phone;
  public String levelName;
  public String playTimes;
  public String postfix;
  public String day;
  //
  public List<Customer> customers;
  public String singleDoubleBag;
  public String teeTimeInfo;

  public class Customer implements Serializable {

    public String consumerCar;
    public String identityName;
    public String name;
    public String openBallCave;
  }

  public Customer getCustomer() {
    return new Customer();
  }

  public long endTime;

  //
  public String consumerCardNo;
  public String lockerNo;
  public String bagNumber;
  public String ballCave;

  public List<GoodsBean> consumerItems;

  public String cashTime;

  public List<CashWay> cashWays;

  public class CashWay implements Serializable {

    public String cashWay;
    public String cost;
    public List<Item> items;

    public class Item {

      public String cashWayName;
      public String payFree;
      public String valueCi;
      public String tailNumber;
      public String cardholder;
    }
  }

}
